<?php if( empty($arParents) ): ?>
    <?php echo link_to(
                    __('tree root')
                    , 'tree/list'
                )?>
<?php else: ?>
    <?php foreach( $arParents as $obj ): ?>
        <?php echo link_to(
                        $obj->getName()
                        , 'tree/edit?id=' . $obj->getId()
                    )?>&nbsp;\&nbsp;
    <?php endforeach; ?>
<?php endif; ?>